def outer(func):
    def inner():
        print("preparing..")
        func()
        print("done")

    return inner


@outer
def sleep():
    import time
    import random
    print("Sleep...")
    time.sleep(random.randint(1, 5))


sleep()
